<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Why o why?</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
    <script type="text/javascript">
    $(function() {
        var s = ["a", "b", "ab"];
        $("#txtSearch").autocomplete({
            source: s,
            formatItem: function(row, i, n) { return "whatever" },
            minLength: 1
        });
    });
    </script>
</head>
<body>
    Search <input id="txtSearch" type="text" />
</body>
</html>
